<!DOCTYPE html>
<head xmlns:v-bind="http://www.w3.org/1999/xhtml" >
    <meta charset="UTF-8">
    <title>demo13-vue局部组件</title>
  <script src="./js/vue.min.js"></script>

</head>

<body>
   <div id="app">
     <runoob></runoob>
   </div>

</body>

<script type="application/javascript">
  var childTag = {
    template: '<h1>自定义局部组件，一定要注意是components，而不是component</h1>'
  };
  var vm = new Vue({
    el: "#app",
    components:{
      'runoob': childTag
    }
  });


</script>
</html>
